import 'package:mziot/app/data/profile_entity.dart';
import 'package:mziot/generated/json/base/json_convert_content.dart';

ProfileEntity $ProfileEntityFromJson(Map<String, dynamic> json) {
  final ProfileEntity profileEntity = ProfileEntity();
  final String? timezone = jsonConvert.convert<String>(json['timezone']);
  if (timezone != null) {
    profileEntity.timezone = timezone;
  }
  final String? userName = jsonConvert.convert<String>(json['userName']);
  if (userName != null) {
    profileEntity.userName = userName;
  }
  final String? nickName = jsonConvert.convert<String>(json['nickName']);
  if (nickName != null) {
    profileEntity.nickName = nickName;
  }
  final String? userHeadImg = jsonConvert.convert<String>(json['userHeadImg']);
  if (userHeadImg != null) {
    profileEntity.userHeadImg = userHeadImg;
  }
  return profileEntity;
}

Map<String, dynamic> $ProfileEntityToJson(ProfileEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['timezone'] = entity.timezone;
  data['userName'] = entity.userName;
  return data;
}
